﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using zielonka.co.uk.test.framework.time;

namespace zielonka.co.uk.extensions.system.tests
{
    [TestClass]
    public class ReverseTests
    {
        [TestMethod]
        public void CorrectlyReversesHelloWorld()
        {
            string expected = "dlrow olleh";
            string actual = "hello world".Reverse();
            Assert.AreEqual(expected,actual);
        }

        [TestMethod]
        public void DoesNotThrowExceptionOnEmptyString()
        {
            string expected = "";
            string actual = "".Reverse();
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        public void DoesNotThrowExceptionOnNullStringReturnsAnNullString()
        {
            string expected = null;
            string actual = null;
            actual = actual.Reverse();

            Assert.AreEqual(expected, actual);
        }
    }
}
